import type { BasicColumn, FormSchema } from '/@/components/Table'
import * as selfFunc from './supplierType.func'


export const searchFormSchema: FormSchema[] = [
    {
    label: '名称',
    field: 'title',
    colProps: {
    span:8
    },
    component:'Input',
    },
]

export const columns: BasicColumn[] = [
    {
    title: '名称',
        dataIndex: 'title',
        align:'center',
    },
    {
    title: '排序号',
        dataIndex: 'sortNo',
        align:'center',
    },
    {
    title: '创建日期',
        dataIndex: 'createTime',
        align:'center',
    },
    {
    title: '更新日期',
        dataIndex: 'updateTime',
        align:'center',
    },
]

export const formSchema: FormSchema[] = [
    {
    label: '编号',
    field: 'id',
    show: false,
    component: 'Input',
    },
    {
    label: '父级节点',
        field: 'parentId',
colProps: {
    span:24,
},
    component: 'JTreeSelect',
            componentProps: {
            dict:'supplier_type,title,id',
                    hasChildField: 'is_leaf',
                    pidValue: '0',
                    pidField: 'parent_id',
                    converIsLeafVal: 0,
            },
    },
    {
    label: '名称',
        field: 'title',
colProps: {
    span:24,
},
    component: 'Input',
    },
    {
    label: '排序号',
        field: 'sortNo',
colProps: {
    span:24,
},
    component: 'InputNumber',
    },
]



